<?php

namespace Database\Factories;

use App\Models\Post;
use Illuminate\Database\Eloquent\Factories\Factory;

class VideoFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            // video_description
            // video_url
            // video_title
            "video_description" => $this->faker->text(100),
            "video_url" => $this->faker->url(),
            "video_title" => $this->faker->text(20),
            "post_id" => $this->faker->randomElement(Post::pluck('id')->toArray()),
        ];
    }
}
